#ifndef SYNCREMOTEDB_H
#define SYNCREMOTEDB_H

#include <QObject>
#include <QStringList>

class QSqlQuery;
class SyncRemoteDB : public QObject
{
    Q_OBJECT
public:
    explicit SyncRemoteDB(QObject *parent = 0);
    ~SyncRemoteDB();
signals:
    void sigInfo(QString info);
    void sigError(QString info);

public slots:
    void slotSyncDB(QString remoteHost, QString remoteDBName, QString remoteDBType, QString remoteuserName,
                    QString remotePwd, QString localDBName, QString localDBType, QString localUserName,
                   QString localPwd,  QStringList listTableNames);

private:
    void syncDBWithRemoteServer( QStringList listTableNames);

    QSqlQuery* queryRemoteServer;
    QSqlQuery* queryLocalServer;

};

#endif // SYNCREMOTEDB_H
